package cc.magicjson.mybatis.integration.test.entity;


import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.Data;


import java.time.LocalDate;

@Data
@AutoMapper(target = UserEntity.class)
public class UserDTO {
    private Long userId;

    @AutoMapping(target = "username")
    private String name;

    private String email;
    private String age;

    @AutoMapping(source = "createdAt")
    private LocalDate registrationDate;

    private Boolean active;

    @AutoMapping(ignore = true)
    private String ignoredField;
}
